package org.ceteca.explica.core.common;

import java.util.ArrayList;

public class RegistryOT {
	private String[] lValues;
	private long id;
	private String fieldId;
	
	public RegistryOT() {
		this.lValues = null;
		this.id = -1;
		this.fieldId = null;
	}
	
	public RegistryOT(long id, String fieldId, String[] lValues) {
		this.id = id;
		this.fieldId = fieldId;
		this.lValues = lValues;
	}
	
	public int getColumnCount() {
		return (this.lValues == null?0:this.lValues.length);
	}
	
	public String[] getValues() {
		return this.lValues;
	}
	
	public String getValue(int col) {
		return (this.lValues == null?null:this.lValues[col]);
	}

	public String getFieldId() {
		return fieldId;
	}

	public void setFieldId(String fieldId) {
		this.fieldId = fieldId;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String[] getLValues() {
		return lValues;
	}

	public void setLValues(String[] values) {
		lValues = values;
	}
	
	
}
